
package com.hulk.dryad.persistence.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.ToString;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 通知公告
 *
 * @author hulk
 * @date 2021-04-01 14:07:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ToString(callSuper = true)
@TableName("t_sys_notice")
public class SysNotice extends SuperEntity<SysNotice> {

	private static final long serialVersionUID = 1L;

	/**
	 * 公告ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 公告标题
	 */
	@TableField(value = "title")
	private String title;
	/**
	 * 公告类型（"NOTICE"通知 ""公告）
	 */
	@TableField(value = "type")
	private String type;
	/**
	 * 公告内容
	 */
	@TableField(value = "content")
	private String content;
	/**
	 * 公告状态（0正常 1关闭）
	 */
	@TableField(value = "status")
	private String status;
	/**
	 * 创建者
	 */
	@TableField(value = "created_by", fill = FieldFill.INSERT)
	private String createdBy;
	/**
	 * 创建时间
	 */
	@TableField(value = "created_time", fill = FieldFill.INSERT)
	private LocalDateTime createdTime;
	/**
	 * 更新者
	 */
	@TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
	private String updatedBy;
	/**
	 * 修改时间
	 */
	@TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updatedTime;
	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;
	/**
	 *
	 */
	@TableField(value = "reversion")
	private Long reversion;
	/**
	 *
	 */
	@TableField(value = "rsv1")
	private String rsv1;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
